package com.softeem.service.impl;

import com.softeem.domain.Comment;
import com.softeem.domain.Travle;
import com.softeem.domain.vo.CommentVO;
import com.softeem.mapper.TravleMapper;
import com.softeem.service.ITravleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2022-07-01
 */
@Service
public class TravleServiceImpl extends ServiceImpl<TravleMapper, Travle> implements ITravleService {

    @Autowired
    TravleMapper mapper;

    @Override
    public List<Travle> addTra(Travle travle) {
        return mapper.addTravle(travle);
    }

    @Override
    public void updateRemen(String traId) {
        mapper.updateRemen(traId);
    }

    @Override
    public void updateYouhui(String traId) {
        mapper.updateYouhui(traId);
    }

    @Override
    public void updateDelete(String traId) {
        mapper.updateDelete(traId);
    }

    @Override
    public void renewYouhui(String traId) {
        mapper.renewYouhui(traId);
    }

    @Override
    public void renewRemen(String traId) {
        mapper.renewRemen(traId);
    }

    @Override
    public void recoverBin(String traId) {
        mapper.recoverBin(traId);
    }

    @Override
    public List<CommentVO> findAllComment() {
        return mapper.findAllComment();
    }

    @Override
    public List<Comment> deleteComment(Integer pId) {
        return mapper.deleteComment(pId);
    }
}
